package com.ruoyi.maintainImage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.maintainImage.mapper.CheMaintainImageMapper;
import com.ruoyi.maintainImage.domain.CheMaintainImage;
import com.ruoyi.maintainImage.service.ICheMaintainImageService;

/**
 * 维修管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-08
 */
@Service
public class CheMaintainImageServiceImpl implements ICheMaintainImageService 
{
    @Autowired
    private CheMaintainImageMapper cheMaintainImageMapper;

    /**
     * 查询维修管理
     * 
     * @param id 维修管理主键
     * @return 维修管理
     */
    @Override
    public CheMaintainImage selectCheMaintainImageById(Long id)
    {
        return cheMaintainImageMapper.selectCheMaintainImageById(id);
    }

    /**
     * 查询维修管理列表
     * 
     * @param cheMaintainImage 维修管理
     * @return 维修管理
     */
    @Override
    public List<CheMaintainImage> selectCheMaintainImageList(CheMaintainImage cheMaintainImage)
    {
        return cheMaintainImageMapper.selectCheMaintainImageList(cheMaintainImage);
    }

    /**
     * 新增维修管理
     * 
     * @param cheMaintainImage 维修管理
     * @return 结果
     */
    @Override
    public int insertCheMaintainImage(CheMaintainImage cheMaintainImage)
    {
        return cheMaintainImageMapper.insertCheMaintainImage(cheMaintainImage);
    }

    /**
     * 修改维修管理
     * 
     * @param cheMaintainImage 维修管理
     * @return 结果
     */
    @Override
    public int updateCheMaintainImage(CheMaintainImage cheMaintainImage)
    {
        return cheMaintainImageMapper.updateCheMaintainImage(cheMaintainImage);
    }

    /**
     * 批量删除维修管理
     * 
     * @param ids 需要删除的维修管理主键
     * @return 结果
     */
    @Override
    public int deleteCheMaintainImageByIds(Long[] ids)
    {
        return cheMaintainImageMapper.deleteCheMaintainImageByIds(ids);
    }

    /**
     * 删除维修管理信息
     * 
     * @param id 维修管理主键
     * @return 结果
     */
    @Override
    public int deleteCheMaintainImageById(Long id)
    {
        return cheMaintainImageMapper.deleteCheMaintainImageById(id);
    }
}
